﻿#include<vector>
#include<iostream>
#include<string>
#include<fstream>
#include"initdata.h"
using namespace std;
vector<vector<string> > dataFromTxt;
extern ofstream fout;
int i=0;
void initdata() {
	ifstream fin;
	fin.open("output.txt");
	string str;
	while (getline(fin, str)) {
		vector<string> temp;
		int size = str.size();
		string::size_type pos = str.find(" ");
		temp.push_back(str.substr(0, pos));
		temp.push_back(str.substr(pos+1,size));
		dataFromTxt.push_back(temp);
		//i++;
	}
	fin.close();
}
void outdata() {
	cout << dataFromTxt[i][0] << " " << dataFromTxt[i][1] << endl;
	fout << dataFromTxt[i][0] << " " << dataFromTxt[i][1] << endl;
	if (dataFromTxt[i][0] == "INTCON") {
		fout << "<无符号整数>" << endl;
		cout << "<无符号整数>" << endl;
	}
}